package spring.data.jpa.vo;

import java.io.Serializable;

import org.apache.commons.beanutils.converters.LongConverter;

import spring.data.jpa.annotation.ColumnMapper;

public class EmployeeVO implements Serializable {

    private static final long serialVersionUID = 1L;
    @ColumnMapper(columnName = "ID", converter = LongConverter.class)
    protected Long id;
    @ColumnMapper(columnName = "name")
    private String name;
    @ColumnMapper(columnName = "DEPARTMENT_NAME")
    private String departmentName;
    @ColumnMapper(columnName = "DEPARTMENT_ID", converter = LongConverter.class)
    private Long departmentId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**  
     * 获取departmentName  
     * @return departmentName
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**  
     * 设置departmentName  
     * @param departmentName
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /*
     * (non-Javadoc)
     * 
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Employee [id=" + id + ", name=" + name + ", departmentName=" + departmentName + "]";
    }

    /**  
     * 获取departmentId  
     * @return departmentId
     */
    public Long getDepartmentId() {
        return departmentId;
    }

    /**  
     * 设置departmentId  
     * @param departmentId
     */
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }
}
